﻿@if (Request.IsAuthenticated)
{
    var user = (Bowerbird.Website.Models.UserModel)ViewBag.CurrentUser;
    <div style="text-align: right;">
        <img src="@user.ProfilePictureUrl" width="30px" height="30px" alt="" style="vertical-align:middle"/>
        @Html.ActionLink(user.Name ?? "[User]", "Edit", "Profile")&nbsp;
        @Html.ActionLink("Sign Out", "LogOff", "Account", null, new { @class = "boldYellowLink" })
    </div>
}
else
{
    <div style="text-align: right">
        Have an Account? 
        <a href="https://bowerbird.accesscontrol.appfabriclabs.com:443/v2/wsfederation?wa=wsignin1.0&wtrealm=http%3a%2f%2flocalhost%2fbowerbird%2f" class="boldYellowLink">Sing In</a>
    </div>
}